import request from '@/utils/request'

// 登录
export const login = (params?: any) => request.post('login', params);

// 登出
export const logout = (params?: any) => request.post('logout', params);

// 注册
export const register = (params?: any) => request.post('register', params);

// 微信公众号跳转url
export const wxOaCodeUrl = (params?: any) => request.post('getWxOaCodeUrl', params);

// 微信公众号登录
export const wxOaLogin = (params?: any) => request.post('wxOaLogin', params);

// 获取微信扫码登录二维码
export const getWxOpScanCodeUrl = (params?: any) => request.post('getWxOpScanCodeUrl', params);

// 微信扫码登录
export const wxScanLogin = (params?: any) => request.post('wxScanLogin', params);

// 微信小程序登录
export const wxApLogin = (params?: any) => request.post('wxApLogin', params);

// 发送验证码
export const sendSmsCode = (params?: any) => request.post('sendSmsCode', params);

// 忘记密码
export const forgetPassword = (params?: any) => request.post('forgetPassword', params);